
package com.jf.cloud.group.model;

import com.jf.cloud.common.model.BaseModel;

import java.io.Serializable;
import java.util.Date;
/**
 * 拼团活动表
 *
 * @author zz
 * @date 2021-03-20 10:39:31
 */
public class GroupActivity extends BaseModel implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 拼团活动id
     */
    private Long groupActivityId;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 活动名称
     */
    private String activityName;

    /**
     * 活动开始时间（活动状态：未开始、经行中、已结束）
     */
    private Date startTime;

    /**
     * 活动结束时间（活动状态：未开始、经行中、已结束）
     */
    private Date endTime;

    /**
     * 成团人数
     */
    private Integer groupNumber;

    /**
     * 商品是否限购（1:限购、0:不限购）
     */
    private Integer hasMaxNum;

    /**
     * 限购数量
     */
    private Integer maxNum;

    /**
     * 是否模拟成团（1:模拟参团、0:不模拟）
     */
    private Integer hasRobot;


    /**
     * 活动是否预热
     */
    private Integer isPreheat;

    /**
     * 是否开启凑团模式（1:凑团、0:不凑团）
     */
    private Integer hasGroupTip;

    /**
     * 商品id
     */
    private Long spuId;

    /**
     * 已成团订单数（统计）
     */
    private Long groupOrderCount;

    /**
     * 已成团人数（统计）
     */
    private Long groupNumberCount;

    /**
     * 商品价格（sku最低价）
     */
    private Long price;

    /**
     * 拼团状态(-1:删除、0:未启用、1:启用、2:违规下架、3:等待审核 4:已失效 5:已结束)
     */
    private Integer status;

    public Long getGroupActivityId() {
        return groupActivityId;
    }

    public void setGroupActivityId(Long groupActivityId) {
        this.groupActivityId = groupActivityId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getGroupNumber() {
        return groupNumber;
    }

    public void setGroupNumber(Integer groupNumber) {
        this.groupNumber = groupNumber;
    }

    public Integer getHasMaxNum() {
        return hasMaxNum;
    }

    public void setHasMaxNum(Integer hasMaxNum) {
        this.hasMaxNum = hasMaxNum;
    }

    public Integer getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(Integer maxNum) {
        this.maxNum = maxNum;
    }

    public Integer getHasRobot() {
        return hasRobot;
    }

    public void setHasRobot(Integer hasRobot) {
        this.hasRobot = hasRobot;
    }

    public Integer getIsPreheat() {
        return isPreheat;
    }

    public void setIsPreheat(Integer isPreheat) {
        this.isPreheat = isPreheat;
    }

    public Integer getHasGroupTip() {
        return hasGroupTip;
    }

    public void setHasGroupTip(Integer hasGroupTip) {
        this.hasGroupTip = hasGroupTip;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Long getGroupOrderCount() {
        return groupOrderCount;
    }

    public void setGroupOrderCount(Long groupOrderCount) {
        this.groupOrderCount = groupOrderCount;
    }

    public Long getGroupNumberCount() {
        return groupNumberCount;
    }

    public void setGroupNumberCount(Long groupNumberCount) {
        this.groupNumberCount = groupNumberCount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "GroupActivity{" +
                "groupActivityId=" + groupActivityId +
                ", shopId=" + shopId +
                ", activityName='" + activityName + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", groupNumber=" + groupNumber +
                ", hasMaxNum=" + hasMaxNum +
                ", maxNum=" + maxNum +
                ", hasRobot=" + hasRobot +
                ", isPreheat=" + isPreheat +
                ", hasGroupTip=" + hasGroupTip +
                ", spuId=" + spuId +
                ", groupOrderCount=" + groupOrderCount +
                ", groupNumberCount=" + groupNumberCount +
                ", price=" + price +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
